<extend name="public:base" />

<block name="main">

    <div class="slide_main fr">
        <h1 class="frame_title mb10">旧邀请有礼</h1>

        <div class="frame_slide" id="rotate">
            <ul class="hd cl">
                <li <if condition="$Request.action eq 'index'">class="first on"<else/>class="first"</if>>
                    <a href="{:url('uc/promotion/index')}">新邀请首页</a>
                </li>
                <li <if condition="$Request.action eq 'friend'">class="on"</if>>
                <a href="{:url('uc/promotion/friend')}">我的好友</a>
                </li>
                <li <if condition="$Request.action eq 'reward'">class="on"</if>>
                <a href="{:url('uc/promotion/reward')}">我的奖励</a>
                </li>
            </ul>
        </div>
        <div class="frame_slide_con">
            <div class="uc_promotion">
                <div class="yourFriend">
                    <ul class="cl">
                        <li>
                            <p class="a666">注册好友数</p>
                            <p class="af60 number">{$reg_count}</p>
                        </li>
                        <li>
                            <p class="a666">实名好友数</p>
                            <p class="af60 number">{$real_name_count}</p>
                        </li>
                        <li>
                            <p class="a666">投资好友数</p>
                            <p class="af60 number">{$invest_count}</p>
                        </li>
                    </ul>
                </div>
                <div class="h2Title">推荐好友详情</div>
                <notempty name="list">
                    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="tableBlue mt10">
                        <tbody>
                        <tr>
                            <th class="first">好友手机号码</th>
                            <th>实名登记</th>
                            <th>注册时间</th>
                            <th>投资情况</th>
                        </tr>

                        <volist name="list" id="v">
                            <tr>
                                <td class="first">
                                    <if condition="$v['user_phone'] neq ''">
                                        {$v.user_phone|substr=0,3}****{$v.user_phone|substr=7,4}
                                        <else/> 未认证手机
                                    </if>
                                </td>
                                <td>
                                    <if condition="$v['real_name'] neq ''">
                                        {$v.real_name}
                                        <else/>
                                        <span class="af60">未实名</span>
                                    </if>
                                </td>
                                <td>{$v.reg_time}</td>
                                <td><if condition="$v.invest_status eq '未投资'">
                                    <span class="af60">{$v.invest_status}</span>
                                    <else/>
                                    {$v.invest_status}
                                </if></td>
                            </tr>
                        </volist>
                        </tbody>
                    </table>
                    <div class="page mt20">
                        <!-- 分页开始 -->
                        <p class="header">{$page}</p>
                    </div>
                    <else/>
                    <p class="empty tc mt15 mb15">暂无内容</p>
                </notempty>
            </div>
        </div>

    </div>

</block>

<block name="js"></block>